//
//  GuideViewController.m
//  chanyou
//
//  Created by leon on 15/1/14.
//  Copyright (c) 2015年 wanli. All rights reserved.
//

#import "GuideViewController.h"
#import "UIImage+Blur.h"
#import "TripsViewController.h"
@interface GuideViewController ()

@end

@implementation GuideViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
}


- (void)viewDidAppear:(BOOL)animated
{
    [self showIntroWithCrossDissolve];
}

- (void)showIntroWithCrossDissolve {
    EAIntroPage *page1 = [EAIntroPage page];
    page1.title = @"First";
    page1.desc = @"whatever you do";
    page1.bgImage = [[UIImage imageNamed:@"1.jpg"] blurredImage:0.1];
    page1.titleImage = [UIImage imageNamed:@"whatever you do"];
    
    EAIntroPage *page2 = [EAIntroPage page];
    page2.title = @"Fecond";
    page2.desc = @"wherever you go";
    page2.bgImage = [[UIImage imageNamed:@"2.jpg"] blurredImage:0.1];
    page2.titleImage = [UIImage imageNamed:@"supportcat"];
    
    EAIntroPage *page3 = [EAIntroPage page];
    page3.title = @"Third";
    page3.desc = @"or how my heart breaks";
    page3.bgImage = [[UIImage imageNamed:@"3.jpg"] blurredImage:0.1];
    page3.titleImage = [UIImage imageNamed:@"femalecodertocat"];
    
    EAIntroView *intro = [[EAIntroView alloc] initWithFrame:self.view.bounds andPages:@[page1,page2,page3]];
    
    [intro setDelegate:self];
    
    [intro showInView:self.view animateDuration:0.0];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
